# encoding: utf-8
from flask_marshmallow import base_fields
from app.modules.common.parameters import BaseParameters


class PostponeRecordListParameters(BaseParameters):
    postpone_id = base_fields.String(
        description = "延期记录ID",
        required = False,
        missing = None
    )
    apply_id = base_fields.String(
        description = "申请记录ID",
        required = False,
        missing = None
    )


class PostponeApplyParameters(BaseParameters):
    user_id = base_fields.String(
        description = "申请人ID",
        required = True,
    )
    user_name = base_fields.String(
        description = "申请人姓名",
        required = True,
    )
    apply_id = base_fields.String(
        description = "申请记录ID",
        required = True,
    )
    agent_ip = base_fields.String(
        description = "ucloud-agent IP",
        required = True,
    )
    from_date = base_fields.Date(
        description = "原回收时间",
        required = True,
    )
    to_date = base_fields.Date(
        description = "新回收时间",
        required = True,
    )
    plan_name = base_fields.String(
        description = "项目名",
        required = True,
    )
    desc = base_fields.String(
        description = "描述",
        required = True,
    )
